package com.mall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class PageController {

    // 跳转登录和注册页面
    @RequestMapping("/{module1}")
    public String page(@PathVariable String module1){
        return module1;
    }

    // 跳转sys和common下面相应的页面
    @RequestMapping("/{module}/{moduleUI}")
    public String doMenuUI(@PathVariable String moduleUI){
        return "sys/"+ moduleUI;
    }

    @RequestMapping("/doIndexUI")
    public String doIndexUI(){
        return "starter-bak";
    }

    @RequestMapping("/doPageUI")
    public String doPageUI(){
        return "common/page";
    }


}
